extends Area2D


var move = false

# Called when the node enters the scene tree for the first time.
func _ready():
	connect("body_entered",self,"move")
	pass # Replace with function body.

func _process(delta):
	if move:
		self.position.x += 2
	pass

func move(body):
	move = true
	body.queue_free()
	pass
